.class public Lcom/waiqin365/lightapp/kehu/b/ce;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p2, p0, Lcom/waiqin365/lightapp/kehu/b/ce;->a:Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/ce;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/b/ce;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 17

    if-eqz p2, :cond_0

    const-string/jumbo v2, "tab"

    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/cg;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/cg;->a:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/cg;

    const/4 v1, 0x0

    move-object/from16 v0, p0

    invoke-direct {v2, v0, v1}, Lcom/waiqin365/lightapp/kehu/b/cg;-><init>(Lcom/waiqin365/lightapp/kehu/b/ce;Lcom/waiqin365/lightapp/kehu/b/cf;)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v3, 0x7f030087

    const/4 v4, 0x0

    invoke-virtual {v1, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v1, 0x7f0c0335

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/kehu/b/cg;->a(Lcom/waiqin365/lightapp/kehu/b/cg;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0336

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/kehu/b/cg;->b(Lcom/waiqin365/lightapp/kehu/b/cg;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0337

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/kehu/b/cg;->c(Lcom/waiqin365/lightapp/kehu/b/cg;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0338

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/kehu/b/cg;->d(Lcom/waiqin365/lightapp/kehu/b/cg;Landroid/widget/TextView;)Landroid/widget/TextView;

    move-object/from16 v0, p2

    invoke-virtual {v0, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v3, v2

    :goto_0
    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->a:Ljava/util/ArrayList;

    move/from16 v0, p1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/ch;

    const-string/jumbo v2, "tab"

    iget-object v4, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->i:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/cg;

    const/4 v2, 0x0

    move-object/from16 v0, p0

    invoke-direct {v1, v0, v2}, Lcom/waiqin365/lightapp/kehu/b/cg;-><init>(Lcom/waiqin365/lightapp/kehu/b/ce;Lcom/waiqin365/lightapp/kehu/b/cf;)V

    const-string/jumbo v2, "tab"

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/cg;->a:Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030088

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_1
    return-object p2

    :cond_1
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/cg;

    move-object v3, v1

    goto :goto_0

    :cond_2
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->a:Ljava/lang/String;

    const-string/jumbo v4, "3"

    invoke-virtual {v4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->h:Ljava/util/ArrayList;

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->h:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-nez v2, :cond_6

    :cond_3
    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->a(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    const/16 v4, 0x8

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->b(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    const-string/jumbo v4, "#1a1a1a"

    invoke-static {v4}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->b(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v4

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->b:Ljava/lang/String;

    if-nez v2, :cond_5

    const-string/jumbo v2, ""

    :goto_2
    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_3
    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->c(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v4

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->f:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_4

    const-string/jumbo v2, "null"

    iget-object v5, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->f:Ljava/lang/String;

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_c

    :cond_4
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    const v5, 0x7f080577

    invoke-virtual {v2, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    :goto_4
    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->e:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_d

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->d(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    :cond_5
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->b:Ljava/lang/String;

    goto :goto_2

    :cond_6
    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->b(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    const-string/jumbo v4, "#1a1a1a"

    invoke-static {v4}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setTextColor(I)V

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->a(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    const/4 v4, 0x0

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v7, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->h:Ljava/util/ArrayList;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    const v5, 0x7f0800e4

    invoke-virtual {v4, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v4, "\uff1a"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v4, 0x0

    if-eqz v7, :cond_7

    const/4 v2, 0x0

    move/from16 v16, v2

    move v2, v4

    move/from16 v4, v16

    :goto_5
    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ge v4, v6, :cond_8

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v5, " "

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v7, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/kehu/b/ci;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/kehu/b/ci;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/4 v5, 0x1

    add-int/lit8 v2, v4, 0x1

    move v4, v2

    move v2, v5

    move-object v5, v6

    goto :goto_5

    :cond_7
    move v2, v4

    :cond_8
    iget-object v6, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->b:Ljava/lang/String;

    iget-object v4, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->d:Ljava/lang/String;

    new-instance v7, Landroid/text/SpannableStringBuilder;

    invoke-direct {v7, v6}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    new-instance v8, Landroid/text/SpannableStringBuilder;

    invoke-direct {v8, v5}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    if-eqz v4, :cond_b

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    if-lez v9, :cond_b

    const-string/jumbo v9, ","

    invoke-virtual {v4, v9}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v9

    array-length v10, v9

    const/4 v4, 0x0

    :goto_6
    if-ge v4, v10, :cond_b

    aget-object v11, v9, v4

    invoke-virtual {v6, v11}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v12

    if-eqz v12, :cond_9

    invoke-virtual {v6, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v12

    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v13

    add-int/2addr v13, v12

    new-instance v14, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v15, "#ff9008"

    invoke-static {v15}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v15

    invoke-direct {v14, v15}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v15, 0x22

    invoke-virtual {v7, v14, v12, v13, v15}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    :cond_9
    if-eqz v2, :cond_a

    invoke-virtual {v5, v11}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v12

    if-eqz v12, :cond_a

    invoke-virtual {v5, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v12

    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v11

    add-int/2addr v11, v12

    new-instance v13, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v14, "#ff9008"

    invoke-static {v14}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v14

    invoke-direct {v13, v14}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v14, 0x22

    invoke-virtual {v8, v13, v12, v11, v14}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    :cond_a
    add-int/lit8 v4, v4, 0x1

    goto :goto_6

    :cond_b
    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->b(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->a(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    :cond_c
    iget-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->f:Ljava/lang/String;

    goto/16 :goto_4

    :cond_d
    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->d(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    const/4 v4, 0x0

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/b/cg;->d(Lcom/waiqin365/lightapp/kehu/b/cg;)Landroid/widget/TextView;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/ce;->b:Landroid/content/Context;

    const v5, 0x7f0800bd

    invoke-virtual {v4, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, "\uff1a"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/ch;->e:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1
.end method
